Part Number Hot Search : 
NCP2815 AD7520KD Z8430 SR1060L MC12015 BA09CC0T MJ10000 KTC2815D
Product Description
Full Text Search
 

To Download PCF2129A Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  1. general description the PCF2129A is a cmos 1 real time clock and calendar with an integrated temperature compensated crystal (xtal) os cillator (tcxo) and a 32.768 kh z quartz crystal optimized for very high accuracy and very low power consumption. the PCF2129A has a selectable i 2 c-bus or spi-bus, a backup battery swit ch-over circuit, a programmable watchdog function, a timestamp function, and many other features. 2. features ? temperature comp ensated crystal oscillator (tcx o) with integrated capacitors ? accuracy: 3 ppm from ? 15 c to +60 c ? integration of a 32.768 khz quartz crys tal and oscillator in the same package ? provides year, month, day, weekday, hours, minutes, and seconds ? timestamp function ? with interrupt capability ? detection of two different events on one multilevel input pin (e.g. for tamper detection) ? two line bidirectional 1 mhz fast-mode plus (fm+) i 2 c-bus interface (i ol =20ma at pin sda) ? 3 line spi-bus with separate data input and output (maximum speed 6.5 mbit/s) ? battery backup input pin and switch-over circuitry ? battery backed output voltage pin ? battery low detection function ? extra power fail detection function with input and output pins ? power-on reset override (poro) ? oscillator stop detection function ? interrupt output (open-drain) ? programmable 1 second or 1 minute interrupt ? programmable watc hdog timer with interrupt and reset capability ? programmable alarm function with interrupt capability ? programmable square wave open-drain output pin ? clock operating voltage: 1.2 v to 4.2 v ? low supply current: typical 0.65 a at v dd = 3.0 v and t amb =25 c ? automatic leap year correction PCF2129A integrated rtc, tcxo and quartz crystal rev. 01 ? 13 january 2010 product data sheet 1. the definition of the abbreviations and acronyms used in this data sheet can be found in section 17 .
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 2 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 3. applications ? electronic metering for el ectricity, water, and gas ? timekeeping instruments with high precision ? gps equipment to reduce time to first fix ? applications that require an accurate process timing ? products with long automated unattended operation time 4. ordering information 5. marking table 1. ordering information type number package name description version PCF2129At/1 so20 plastic small outline pack age; 20 leads; body width 7.5 mm sot163-1 table 2. marking codes type number marking code PCF2129At/1 PCF2129At
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 3 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 6. block diagram fig 1. block diagram of PCF2129A 001aaj70 3 temp v dd bbs v bat v ss internal power supply clkout r pu int osci osco temp 1 hz 32.768 khz tcxo battery back up switch-over circuitry oscillator monitor temperature sensor reset logic control divider and timer address register control_1 control_2 control_3 00h 01h 02h seconds 03h minutes 04h hours 05h days 06h weekdays 07h months 08h years 09h second_alarm 0ah minute_alarm 0bh hour_alarm 0ch day_alarm 0dh weekday_alarm 0eh clkout_ctl 0fh watchdg_ctl 10h watchdg_val 11h timestp_ctl 12h sec_timestp 13h min_timestp 14h hour_timestp 15h day_timestp 16h mon_timestp 17h year_timestp 18h aging_offset 19h internal_reg 1ah internal_reg 1bh ts PCF2129A scl sdi sdo serial bus interface selector spi-bus interface i 2 c-bus interface sda/ce ifs
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 4 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 7. pinning information 7.1 pinning 7.2 pin description top view. for mechanical details, see figure 43 . fig 2. pin configuration for PCF2129A (so20) PCF2129A scl v dd sdi v bat sdo bbs sda/ce int ifs n.c. ts n.c. clkout n.c. v ss n.c. n.c. n.c. n.c. n.c. 001aaj704 1 2 3 4 5 6 7 8 9 10 12 11 14 13 16 15 18 17 20 19 table 3. pin description of PCF2129A symbol pin description scl 1 combined serial clock input for both i 2 c-bus and spi-bus; may float when ce inactive sdi 2 serial data input for spi-bus; may float when ce inactive sdo 3 serial data output for spi-bus, push-pull sda/ce 4 combined serial data input and output for the i 2 c-bus and chip enable input (active low) for the spi-bus ifs 5 interface selector input connect to pin v ss to select the spi-bus connect to pin bbs to select the i 2 c-bus ts 6 timestamp input (active low) with 200 k internal pull-up resistor (r pu ) clkout 7 clock output (open-drain) v ss 8 ground supply voltage n.c. 9 to 16 not connected; do not c onnect; do not use as feed through int 17 interrupt output (open-drain; active low) bbs 18 output voltage (battery backed) v bat 19 battery supply voltage (backup) v dd 20 supply voltage
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 5 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 8. functional description the PCF2129A is a real time clock and calendar (rtc) with an on-chip temperature compensated crystal (xtal) oscillator (tcxo) and a 32.768 khz quartz crystal integrated into the same package. address and data are transferred by a selectable 1 mhz fast-mode plus (fm+) i 2 c-bus or a 3 line spi-bus with separate data input and output (see section 9 ). the maximum speed of the spi-bus is 6.5 mbit/s. the PCF2129A contains 28 8-bit registers, th at are used for many different functions, such as clock, alarm, watc hdog, timestamp etc. (see section 8.1 ). the PCF2129A has a backup battery input pin and backup battery switch-over circuit which monitors the main power supply and au tomatically switches to the backup battery when a power failure condition is detected (see section 8.5.1 ). accurate timekeeping is maintained even when the main power supply is interrupted. a battery low detection circuit monito rs the status of the battery (see section 8.5.3 ). when the battery voltage goes below a threshold value, a flag is set to indicate that the battery must be replaced soon. this ensures the integrity of the data during periods of battery backup. 8.1 register overview the PCF2129A contains 28 8-bit registers (see ta b l e 4 ) with an auto-incrementing address register: the built-in address register will increment automatically after each read or write of a data byte up to the register 1b h. after register 1bh the auto-incrementing will wrap around to address 00h. ? the first three registers (memory address 00h, 01h, and 02h) are used as control registers (see section 8.2 ). ? the memory addresses 03h through to 09h are used as counters for the clock function (seconds up to years). the date is automatically adju sted for months with fewer than 31 days, including corrections for leap years. the clock can operate in 12-hour mode with an am/pm indication or in 24-hour mode (see section 8.8 ). ? addresses 0ah through 0eh define the alarm function. it can be selected that an interrupt is generated when an alarm event occurs (see section 8.9 ). ? the register 0fh defines the temperature measurement period and the clock out mode. the temperature measurement can be selected from every 4 minutes (default) down to every 30 seconds (see ta b l e 9 ). clkout frequencies of 32.768 khz (default) down to 1 hz for use as a system clock, a microcontroller clock etc. can be chosen (see section 8.3.2 ). ? address registers 10h and 11h are used for the watchdog timer functions. the watchdog timer has four select able source clocks allowing fo r timer periods from less than 1 ms to greater than 4 hours. an interrupt will be generated when the watchdog times out. ? address registers 12h to 18h are used for the timestamp function. when the trigger event happens, the actual time is sa ved in the timestamp registers (see section 8.11 ). ? address register 19h is used for the correction of the crystal aging effect (see section 8.4.1 ).
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 6 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal ? address registers 1ah and 1bh are for internal use only. ? the registers seconds, minu tes, hours, days, months, and years are all coded in binary coded decimal (bcd) format to simp lify application use. other registers are either bit-wise or standard binary. when one of the rtc registers is read, the co ntent of all counters is temporarily frozen. this prevents a faulty reading of the clo ck and calendar during a carry condition (see section 8.8.8 ). fig 3. handling address registers 001aaj39 8 address register 00h auto-increment wrap around 01h 02h 03h ... 19h 1ah 1bh table 4. register overview bit positions labeled as - are not implemented and will return 0 when read. bits labeled as t must always be written with logic 0. bits labeled as x are undefined at power-on and unchanged by subsequent resets. address register name bit reset value 7 6 5 4 3 2 1 0 control registers 00h control_1 ext_ test tstoptsf1por_ ovrd 12_24 mi si 0000 0000 01h control_2 msf wdtf tsf2 af t tsie aie t 0000 0000 02h control_3 pwrmng[2:0] btse bf blf bie blie 0000 0000 time and date registers 03h seconds osf seconds (0 to 59) 1xxx xxxx 04h minutes - minutes (0 to 59) - xxx xxxx 05h hours - - ampm hours (1 to 12) in 12 h mode - - xx xxxx hours (0 to 23) in 24 h mode - - xx xxxx 06h days - - days (1 to 31) - - xx xxxx 07hweekdays-----w eekdays (0 to 6) - - - - - xxx 08hmonths ---months (1 to 12) ---x xxxx 09h years years (0 to 99) xxxx xxxx alarm registers 0ah second_alarm ae_s second_ alarm (0 to 59) 1xxx xxxx 0bh minute_alarm ae_m minute_alarm (0 to 59) 1xxx xxxx 0ch hour_alarm ae_h - ampm hour_alarm (1 to 12) in 12 h mode 1 - xx xxxx hour_alarm (0 to 23) in 24 h mode 1 - xx xxxx 0dh day_alarm ae_d - day_alarm (1 to 31) 1 - xx xxxx 0ehweekday_alarmae_w----w eekday_alarm (0 to 6) 1 - - - - xxx
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 7 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal clkout control register 0fhclkout_ctltcr[1:0] ---cof[2:0] 00---000 watchdog registers 10h watchdg_tim_ctl wd_cd t ti_tp - - - tf[1:0] 000 - - - 11 11h watchdg_tim_val watchdg_tim_val[7:0] xxxx xxxx timestamp registers 12h timestp_ctl tsm tsoff - 1_o_16_timestp[4:0] 00 - x xxxx 13h sec_timestp - second_timestp (0 to 59) - xxx xxxx 14h min_timestp - minute_timestp (0 to 59) - xxx xxxx 15h hour_timestp - - ampm h our_timestp (1 to 12) in 12 h mode - - xx xxxx hour_timestp (0 to 23) in 24 h mode - - xx xxxx 16h day_timestp - - day_timestp (1 to 31) - - xx xxxx 17hmon_timestp---month_timestp (1 to 12) ---x xxxx 18h year_timestp year_tim estp (0 to 99) xxxx xxxx aging offset register 19h aging_offset ----ao[3:0] ----1000 internal registers 1ahinternal_reg---------------- 1bhinternal_reg---------------- table 4. register overview ?continued bit positions labeled as - are not implemented and will return 0 when read. bits labeled as t must always be written with logic 0. bits labeled as x are undefined at power-on and unchanged by subsequent resets. address register name bit reset value 7 6 5 4 3 2 1 0
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 8 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 8.2 control registers PCF2129A has 28 8-bit registers. the first 3 registers with the addresses 00h, 01h, and 02h are used as control registers. 8.2.1 register control_1 [1] default value. [2] when writing to the register this bit has always to be set logic 0. table 5. control_1 - control and status re gister 1 (address 00h) bit description bit symbol value description reference 7 ext_test 0 [1] normal mode section 8.13 1 external clock test mode 6t 0 [2] unused - 5stop 0 [1] rtc source clock runs section 8.14 1 rtc clock is stopped; rtc divider chain flip-flops are asynchronously set logic 0; clkout at 32.768 khz, 16.384 khz, or 8.192 khz is still available 4tsf1 0 [1] no timestamp interrupt generated section 8.11.1 1 flag set when ts input is driven to an intermediate level between power supply and ground; flag must be cleared to clear interrupt 3 por_ovrd 0 power-on reset ov erride (poro) facility disabled; set logic 0 for normal operation section 8.7.2 1 [1] poro enabled 2 12_24 0 [1] 24 hour mode selected ta b l e 1 8 1 12 hour mode selected 1 mi 0 [1] minute interrupt disabled section 8.12.1 1 minute interrupt enabled 0si 0 [1] second interrupt disabled 1 second interrupt enabled
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 9 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 8.2.2 register control_2 [1] default value. [2] when writing to the register this bit has always to be set logic 0. table 6. control_2 - control and status re gister 2 (address 01h) bit description bit symbol value description reference 7msf 0 [1] no minute or second interrupt generated section 8.12 1 flag set when minute or second interrupt generated; flag must be cleared to clear interrupt 6wdtf 0 [1] no watchdog timer interrupt or reset generated section 8.12.3 1 flag set when watchdog timer interrupt or reset generated; flag cannot be cleared by using the interface (read-only) 5tsf2 0 [1] no timestamp interrupt generated section 8.11.1 1 flag set when ts input is driven to ground; flag must be cleared to clear interrupt 4af 0 [1] no alarm interrupt generated section 8.9.6 1 flag set when alarm triggered; flag must be cleared to clear interrupt 3t 0 [2] unused - 2tsie 0 [1] no interrupt generated from timestamp flag section 8.12.5 1 interrupt generated when timestamp flag set 1aie 0 [1] no interrupt generated from the alarm flag section 8.12.4 1 interrupt generated when alarm flag set 0t 0 [2] unused -
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 10 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 8.2.3 register control_3 [1] values see table 13 . [2] default value. table 7. control_3 - control and status re gister 3 (address 0fh) bit description bit symbol value description reference 7 to 5 pwrmng[2:0] [1] control of the battery s witch-over, battery low detection, and extra power fail detection functions section 8.5 4btse 0 [2] no timestamp when battery switch-over occurs section 8.11.4 1 time-stamped when battery switch-over occurs 3bf 0 [2] no battery switch-ove r interrupt generated section 8.5.1 1 flag set when battery switch-over occurs; flag must be cleared to clear interrupt 2blf 0 [2] battery status ok; no battery low interrupt generated section 8.5.3 1 battery status low; flag cannot be cleared using the interface 1bie 0 [2] no interrupt generated from the battery flag (bf) section 8.12.6 1 interrupt generated when bf is set 0blie 0 [2] no interrupt generated from battery low flag (blf) section 8.12.7 1 interrupt generated when blf is set
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 11 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 8.3 register clkout_ctl 8.3.1 temperature compensated crystal oscillator the frequency of tuning fork quartz crystal oscillators are temperature-de pendent. in the PCF2129A the frequency drift caused by tem perature variation is corrected by adjusting the load capacitance of the crystal oscillator. the load capacitance is changed by switchin g between two load capacitance values using a modulation signal with a programmable duty cy cle. every chip is ca librated in order to produce, at the measured temperature, the correct duty cycle which compensates for the frequency shift. the frequency accuracy can be evaluated by measuring the frequency of the square wave signal available at the output pin clkout. however, the selection of f clkout = 32.768 khz (default value) leads to inaccurate measurements. the most accurate frequency measurement occurs when f clkout = 1 hz is selected (see ta b l e 1 0 ). 8.3.1.1 temperature measurement the PCF2129A has a temperature sensor circuit used to perform the temperature compensation of the frequency. the temperature is measured immediately after power-on and then periodically with a period set by the temperature conversion rate tcr[1:0] in the register clkout_ctl. [1] default value. 8.3.2 clock output a programmable square wave is available at pin clkout. operation is controlled by the cof control bits in register clkout_ctl. fr equencies of 32.768 khz (default) down to 1 hz can be generated for use as a system cloc k, microcontroller clock, input to a charge pump, or for calibration of the oscillator. clkout is an open-drain output and enabled at power-on. when disabled, the output is high-impedance. the duty cycle of the selected clock is not c ontrolled, however, due to the nature of the clock generation, all but the 32 .768 khz frequencies will be 50 : 50. table 8. clkout_ctl - clko ut control register (address 03h) bit description bit symbol value description 7 to 6 tcr[1:0] see table 9 temperature measurement period 5 to 3 - - unused 2 to 0 cof[2:0] see table 10 clkout frequency selection table 9. temperature measurement period tcr[1:0] temperature measurement period 00 [1] 4min 01 2 min 10 1 min 11 30 seconds
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 12 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal [1] duty cycle definition: % high-level time : % low-level time. table 10. clkout frequency selection cof[2:0] clkout frequency (hz) typical duty cycle [1] 000 32768 60 : 40 to 40 : 60 001 16384 50 : 50 010 8192 50 : 50 011 4096 50 : 50 100 2048 50 : 50 101 1024 50 : 50 110 1 50 : 50 111 clkout = high-z -
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 13 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 8.4 register aging_offset 8.4.1 crystal aging correction the PCF2129A has an aging offset register aging_offset to correct the crystal aging effects 2 . the accuracy of the frequency of a quartz cr ystal depends on the aging. crystal suppliers usually specify the first year aging (typically 1 ppm, maximum 3 ppm) and/or the 10 years aging (typically 5 ppm). the aging offset adds an offset, positive or negative, in the temperature compensation circuits which allows to correct the aging effect. the change in ppm per ao[3:0] value is different at different temperatures. at 25 c, the aging offset bits allow a frequency correction of typically 1 ppm per ao[3:0] value, from ? 7ppm to +8ppm. [1] default value. table 11. aging_offset - crystal aging offset register (address 19h) bit description bit symbol value description 7 to 4 - - unused 3 to 0 ao[3:0] see table 12 aging offset value 2. for further information please refer to the application note ref. 3 ? an10857 ? . table 12. frequency correction at 25 c, typical ao[3:0] ppm decimal binary 00000+8 10001+7 20010+6 30011+5 40100+4 50101+3 60110+2 70111+1 81000 [1] 0 91001 ? 1 10 1010 ? 2 11 1011 ? 3 12 1100 ? 4 13 1101 ? 5 14 1110 ? 6 15 1111 ? 7
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 14 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 8.5 power management functions the PCF2129A has two power supply pins and one power output pin: ? v dd - the main power supply input pin ? v bat - the battery backup input pin ? bbs - battery backed output voltage pin (equal to th e internal power supply) the PCF2129A has two power management functions implemented: ? battery switch-over function ? battery low detection function the power management functions are controlled by the control bits pwrmng[2:0] in register control_3: [1] default value. [2] when the battery switch-over function is disabled, the PCF2129A works only with the power supply v dd ; v bat must be put to ground and the battery low detection function is disabled. 8.5.1 battery switch-over function the PCF2129A has a backup battery switch-over circuit which monitors the main power supply v dd and automatically switches to the backup battery when a power failure condition is detected. one of two operation modes can be selected: ? standard mode: the power failure condition happens when: v dd < v bat and v dd PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 15 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal when a power failure condition occurs and t he power supply switches to the battery the following sequence occurs: 1. the battery switch flag bf (reg ister control_3) is set logic 1. 2. an interrupt is generated if the control bit bie (register control_3) is enabled (see section 8.12.6 ). 3. if the control bit btse (register control_3) is logic 1, the timestamp registers store the time and date when the battery switch occurred (see section 8.11.4 ). 4. the battery switch flag bf is cleared via t he interface; it must be cleared to clear the interrupt. the interface is disabled in battery backup operation: ? interface inputs are not recognized, preventing extraneous data being written to the device ? interface outputs are high-impedance 8.5.1.1 standard mode if v dd > v bat or v dd >v th(sw)bat the internal power supply is v dd . if v dd < v bat and v dd v bat the internal power supply is v dd . if v dd < v bat the internal power supply is v bat . fig 4. battery switch-over behavior in standard mode with bit bie logic 1 (enabled) 001aaj31 1 internal power supply (= v bbs ) cleared via interface backup battery operation bf v th(sw)bat (= 2.5 v) v dd (= 0 v) v bat v dd v bbs v bbs int
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 16 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal the direct switching mode is useful in systems where v dd is higher than v bat at all times. the direct switching mode is not recommended if the v dd and v bat values are similar (e.g. v dd = 3.3 v, v bat 3.0 v). in direct switching mo de the power consumption is reduced compared to the standard mode because the monitoring of v dd and v th(sw)bat is not performed. 8.5.1.3 battery switch-over disabled: only one power supply (v dd ) when the battery switch-over function is disabled: ? the power supply is applied on the v dd pin ? the v bat pin must be connected to ground ? the internal power supply, available at the output pin bbs, is equal to v dd ? the battery flag (bf) is always logic 0 8.5.1.4 battery switch-over architecture the architecture of the battery switch-over circuit is shown in figure 6 . fig 5. battery switch-over behavior in direct switching mode with bit bie logic 1 (enabled) 001aaj31 2 internal power supply (= v bbs ) cleared via interface backup battery operation bf v th(sw)bat (= 2.5 v) v dd (= 0 v) v bat v dd v bbs v bbs int
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 17 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal the internal power supply (ava ilable on pin bbs) is equal to v dd or v bat . it has to be assured that there are decoupling capacitors on the pins v dd , v bat , and bbs. 8.5.2 battery backup supply the v bbs voltage on the output pin bbs is equal to the internal power supply and depends on the selected battery switch-over function mode: fig 6. battery switch-over circuit, simplified block diagram 001aag06 1 v cc v th(sw)bat v dd v bbs (internal power supply) v dd v dd(int) v dd(int) v dd(int) v bat logic comparators logic switches v cc v th(sw)bat v bat table 14. output pin bbs battery switch-ove r function mode conditions v bbs equals standard v dd > v bat or v dd > v th(sw)bat v dd v dd < v bat and v dd < v th(sw)bat v bat direct switching v dd > v bat v dd v dd < v bat v bat disabled only v dd available, v bat must be put to ground v dd fig 7. typical driving capability of v bbs : (v bbs ? v dd ) with respect to the output load current i bbs i bbs (ma) 0 8 6 4 2 001aaj431 v dd = 3 v v dd = 2 v ? 400 ? 600 ? 200 0 v bbs ? v dd (mv) ? 800
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 18 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal the output pin bbs can be used as a supply for battery backup devices such as sram (see ref. 3 ? an10857 ? ). for this case, figure 7 shows the typical dr iving capability when v bbs is driven from v dd . 8.5.3 battery low detection function the PCF2129A has a battery low detection circui t which monitors the st atus of the battery v bat . when v bat drops below the threshold value v th(bat)low (typically 2.5 v) the blf flag (register control_3) is set to indicate that the battery is low and that it must be replaced. a low battery will not ensure data integrity during periods of backup batte ry operation. monitoring of the battery voltage also occurs during battery operation. when v bat drops below the threshold value v th(bat)low , the following sequence occurs (see figure 8 ): 1. the battery low flag blf is set logic 1. 2. an interrupt is generated if the control bit blie (register control_3) is enabled (see section 8.12.7 ). 3. the flag blf remains logic 1 until the battery is replaced. blf cannot be cleared using the interface. it is cleared automatica lly by the battery low detection circuit when the battery is replaced. fig 8. battery low detection behavior with bit blie logic 1 (enabled) 001aaj32 2 internal power supply (= v bbs ) v bat blf v th(bat)low (= 2.5 v) v bat v dd = v bbs int
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 19 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 8.6 oscillator stop detection function the PCF2129A has an on-chip os cillator detection circuit which monitors the status of the oscillation: whenever the oscillation stops, a reset o ccurs and the oscillator stop flag osf (in register seconds) is set logic 1. ? power-on: a. the oscillator is not ru nning, the chip is in reset (osf is logic 1). b. when the oscillator starts running and is st able after power-on, the chip exits from reset. c. the flag osf is still logic 1 and can be cleared (osf set logic 0) via the interface. ? power supply failure: a. when the power supply of the chip (v dd or v bat ) drops below a certain value (v low ), typically 1.2 v, the oscillator stops running and a reset occurs. b. when the power supply retu rns to normal operation, th e oscillator starts running again, the chip exits from reset. c. the flag osf is still logic 1 and can be cleared (osf set logic 0) via the interface. (1) theoretical state of the signals since there is no power. (2) the oscillator stop flag (osf), se t logic 1, indicates that the osci llation has stopped and a reset has occurred since the flag was last cleared (osf set l ogic 0). in this case the integrity of the clock information is not guaranteed. the osf flag is cleared using the interface. fig 9. power failure event due to battery discharge: reset occurs 001aaj40 9 internal power supply (1) v th(sw)bat (= 2.5 v) v ss v bat v low (= 1.2 v) v dd v bbs v bbs v bbs v bbs v dd v bat v ss (2) osf battery discharge
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 20 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 8.7 reset function the PCF2129A has a power-on reset (por) and a power-on reset override (poro) function implemented. 8.7.1 power-on reset (por) the por is active whenever t he oscillator is stopped. the osc illator is also considered to be stopped during the time between power -on and stable crystal resonance (see figure 10 ). this time may be in the range of 200 ms to 2 s depending on temperature and supply voltage. whenever an internal reset occurs, the osc illator stop flag is set (osf set logic 1). after por, the following mode is entered: ? 32.768 khz clkout active ? power-on reset override (poro) available to be set ? 24 hour mode is selected ? battery switch-over is enabled ? battery low detection is enabled the register values after power-on are shown in table 4 . 8.7.2 power-on reset override (poro) the por duration is directly rela ted to the crystal o scillator start-up time. due to the long start-up times experienced by these types of circuits, a mechanism has been built in to disable the por and hence speed up on-board test of the device. fig 10. dependency between por and oscillator 001aaf89 7 chip in reset chip not in reset t v dd oscillation internal reset fig 11. power-on reset (por) system 001aaj32 4 oscillator 0 = override inactive 1 = override active 0 = clear override mode 1 = override possible por_ovrd sda/ce scl reset override clear osc stopped 0 = stopped, 1 = running reset
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 21 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal the setting of the poro mode requires that por_ovrd in register control_1 is set logic 1 and that the signals at the interface pins sda/ce and scl are toggle d as illustrated in figure 12 . all timings shown are required minimums. once the override mode is entered, the devi ce is immediately released from the reset state and the set-up operation can commence. the poro mode is cleared by writing lo gic 0 to por_ovrd. por_ovrd must be logic 1 before a re-entry into the overri de mode is possible. setting por_ovrd logic 0 during normal operation has no effect except to prevent accidental entry into the poro mode. fig 12. power-on reset override (poro) sequence, valid for both i 2 c-bus and spi-bus 001aaj32 6 minimum 2000 ns minimum 500 ns 8 ms power up scl reset override sda/ce
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 22 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 8.8 time and date function the majority of this registers are coded in the binary coded decimal (bcd) format. 8.8.1 register seconds [1] start-up value. 8.8.2 register minutes table 15. seconds - seconds and clock integrit y register (address 03h) bit description bit symbol value place value description 7 osf 0 - clock integrity is guaranteed 1 [1] - clock integrity is not guaranteed: oscillator has stopped and chip reset has occurred since flag was last cleared 6 to 4 seconds 0 to 5 ten?s place actual seconds coded in bcd format 3to0 0to9 unit place table 16. seconds coded in bcd format seconds value in decimal upper-digit (ten?s place) digit (unit place) bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 00 0000000 01 0000001 02 0000010 : ::::::: 09 0001001 10 0010000 : ::::::: 58 1011000 59 1011001 table 17. minutes - minutes register (address 04h) bit description bit symbol value place value description 7 - - - unused 6 to 4 minutes 0 to 5 ten?s place actual minutes coded in bcd format 3to0 0to9 unit place
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 23 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 8.8.3 register hours [1] hour mode is set by the bit 12_24 in register control_1. 8.8.4 register days [1] the rtc compensates for leap years by adding a 29 th day to february if the year counter contains a value which is exactly divisible by 4, in cluding the year 00. 8.8.5 register weekdays although the association of the weekdays coun ter to the actual weekday is arbitrary, the PCF2129A will assume sunday is 000 and monday is 001 for the pur poses of determining the increment for calendar weeks. [1] these bits may be re-assigned by the user. table 18. hours - hours register (address 05h) bit description bit symbol value place value description 7to6 - - - unused 12 hour mode [1] 5 ampm 0 - indicates am 1 - indicates pm 4 hours 0 to 1 ten?s place actual hours coded in bcd format when in 12 hour mode 3to0 0to9 unit place 24 hour mode [1] 5 to 4 hours 0 to 2 ten?s place actual hours coded in bcd format when in 24 hour mode 3to0 0to9 unit place table 19. days - days register (a ddress 06h) bit description bit symbol value place value description 7to6 - - - unused 5to4 days [1] 0 to 3 ten?s place actual day coded in bcd format 3to0 0to9 unit place table 20. weekdays - weekdays register (address 07h) bit description bit symbol value description 7to3 - - unused 2 to 0 weekdays 0 to 6 actual weekday value, see ta b l e 2 1 table 21. weekday assignments day [1] bit 2 1 0 sunday 0 0 0 monday 0 0 1 tuesday 0 1 0 wednesday 0 1 1 thursday 1 0 0 friday 1 0 1 saturday110
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 24 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 8.8.6 register months 8.8.7 register years table 22. months - months register (address 08h) bit description bit symbol value place value description 7to5 - - - unused 4 months 0 to 1 ten?s place actual month coded in bcd format, see table 23 3to0 0to9 unit place table 23. month assignments in bcd format month upper-digit (ten?s place) digit (unit place) bit 4 bit 3 bit 2 bit 1 bit 0 january00001 february00010 march00011 april00100 may00101 june00110 july00111 august01000 september01001 october10000 november10001 december10010 table 24. years - years register (address 09h) bit description bit symbol value place value description 7 to 4 years 0 to 9 ten?s place actual year coded in bcd format 3to0 0to9 unit place
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 25 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 8.8.8 setting and reading the time figure 13 shows the data flow and data dependencies starting from the 1 hz clock tick. during read/write operations, the time counting circuits (memory locations 03h through 09h) are blocked. this prevents ? faulty reading of the clock and calendar during a carry condition ? incrementing the time regist ers during the read cycle after this read/write access is completed, the time circuit is released again and any pending request to increment the time counte rs that occurred during the read/write access is serviced. a maximum of 1 request can be stored; therefore, all accesses must be completed within 1 second (see figure 14 ). as a consequence of this method, it is very important to make a read or write access in one go, that is, setting or reading seconds through to years should be made in one single access. failing to comply with this method co uld result in the time becoming corrupted. fig 13. data flow of the time function fig 14. access time for read/write operations 001aaf90 1 1 hz tick 12_24 hour mode weekday seconds minutes hours days leap year calculation months years t < 1 s 013aaa21 5 slave address data stop data start
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 26 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal as an example, if the time (seconds through to hours) is set in one access and then in a second access the date is set, it is possible that the time may increment between the two accesses. a similar problem exists when reading. a roll over may occur between reads thus giving the minutes from one moment and the hours from the next. therefore it is advised to read all time and date registers in one access. 8.9 alarm function when one or more of the alarm bit fields are loaded with a valid second, minute, hour, day, or weekday and its corresponding alarm enable bit (ae_x) is logic 0, then that information is compared with the actual second, minute, hour, day, and weekday (see figure 15 ). the generation of interrupts from the alarm function is described in section 8.12.4 . (1) only when all enabled alarm settings are matching. fig 15. alarm function block diagram 013aaa236 weekday alarm ae_w weekday time = day alarm ae_d day time = hour alarm ae_h hour time = minute alarm = check now signal set alarm flag af (1) ae_s = 1 1 0 example ae_m minute time = second time second alarm ae_s
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 27 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 8.9.1 register second_alarm [1] default value. 8.9.2 register minute_alarm [1] default value. 8.9.3 register hour_alarm [1] default value. [2] hour mode is set by the bit 12_24 in register control_1. table 25. second_alarm - second alarm register (address 0ah) bit description bit symbol value place value description 7 ae_s 0 - second alarm is enabled 1 [1] - second alarm is disabled 6 to 4 second_alarm 0 to 5 ten?s place second alarm information coded in bcd format 3to0 0to9 unit place table 26. minute_alarm - minute alarm register (address 0bh) bit description bit symbol value place value description 7 ae_m 0 - minute alarm is enabled 1 [1] - minute alarm is disabled 6 to 4 minute_alarm 0 to 5 ten?s place minute alarm information coded in bcd format 3to0 0to9 unit place table 27. hour_alarm - hour alarm regist er (address 0ch) bit description bit symbol value place value description 7 ae_h 0 - hour alarm is enabled 1 [1] - hour alarm is disabled 6 - - - unused 12 hour mode [2] 5 ampm 0 - indicates am 1 - indicates pm 4 hour_alarm 0 to 1 ten?s place hour alarm information coded in bcd format when in 12 hour mode 3to0 0to9 unit place 24 hour mode [2] 5 to 4 hour_alarm 0 to 2 ten?s place hour alarm information coded in bcd format when in 24 hour mode 3to0 0to9 unit place
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 28 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 8.9.4 register day_alarm [1] default value. 8.9.5 register weekday_alarm [1] default value. 8.9.6 alarm flag when all enabled comparisons first match, the alarm flag af (register control_2) is set. af will remain set until cleared by using the interf ace. once af has been cleared it will only be set again when the time increments to match the alarm condition once more. for clearing the flags see section 8.10.5 alarm registers which have their alarm enable bit ae_x at logic 1 are ignored. table 28. day_alarm - day rearm regist er (address 0dh) bit description bit symbol value place value description 7 ae_d 0 - day alarm is enabled 1 [1] - day alarm is disabled 6 - - - unused 5 to 4 day_alarm 0 to 3 ten?s place day alarm information coded in bcd format 3to0 0to9 unit place table 29. weekday_alarm - weekday alarm regi ster (address 0eh) bit description bit symbol value description 7 ae_w 0 weekday alarm is enabled 1 [1] weekday alarm is disabled 6to3 - - unused 2 to 0 weekday_alarm 0 to 6 weekday alarm information example where only the minute alarm is used and no other interrupts are enabled. fig 16. alarm flag timing diagram 001aaf9 03 44 45 45 minute alarm minutes counter af int when aie = 1 46
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 29 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 8.10 timer functions the PCF2129A has a watchdog timer function. the timer can be selected by using the control bit wd_cd in the register watchdg_tim_ctl. the watchdog timer has four selectable source clocks. it can be used to detect a microprocessor with interrupt and reset capability which is out of control (see section 8.10.3 ) to control the timer function and timer outpu t, the registers control_2, watchdg_tim_ctl, and watchdg_tim_val are used. 8.10.1 register watchdg_tim_ctl [1] default value. [2] when writing to the register this bit has always to be set logic 0. 8.10.2 register watchdg_tim_val table 30. watchdg_tim_ctl - watchdog timer cont rol register (address 10h) bit description bit symbol value description 7 wd_cd 0 [1] watchdog timer disabled 1 watchdog timer enabled; the interrupt pin int is activated when timed out 6t 0 [2] unused 5ti_tp 0 [1] the interrupt pin int is configured to generate a permanent active signal when msf (register control_2) is set 1 the interrupt pin int is configured to generate a pulsed signal when msf flag is set (see figure 19 ) 4to2 - unused 1 to 0 tf[1:0] timer source clock for watchdog timer 00 4.096 khz 01 64 hz 10 1 hz 11 [1] 1 ? 60 hz table 31. watchdg_tim_val - watchdog timer value register (address 11h) bit description bit symbol value description 7 to 0 watchdg_tim_val[7:0] 00 to ff countdown period in seconds: where n is the countdown value countdownperiod n sourceclockfrequency -------------------------------------------------------------- - =
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 30 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 8.10.3 watchdog timer function the watchdog timer function is enabled or disabled by the wd_cd bit of the register watchdg_tim_ctl (see ta b l e 3 0 ). the two bits tf[1:0] in register watchdg_tim_ ctl determine one of the four source clock frequencies for the watchdog timer: 4.096 khz, 64 hz, 1 hz, or 1 ? 60 hz (see ta b l e 3 2 ). when the watchdog timer functi on is enabled, the 8-bit timer in register watchdg_tim_val determines the watchdog timer period. the watchdog timer counts down from the software programmed 8-bit binary value n in register watchdg_tim_val. when the counte r reaches 1 the watchdog timer flag wdtf (register control_2) is set logic 1 and an interrup t will be generated. the counter does not automatically reload. when wd_cd is logic 0 (watchdog timer di sabled) and the microcontroller unit (mcu) loads a watchdog timer value n, then: ? the flag wdtf is reset ? int is cleared ? the watchdog timer starts again loading the counter with 0 will: ? reset the flag wdtf ? clear int ? stop the watchdog timer remark: wdtf is read only. a read of the regist er control_2 will auto matically reset the flag wdtf. table 32. programmable watchdog timer tf[1:0] timer source clock frequency units minimum timer period (n = 1) units maximum timer period (n = 255) units 00 4.096 khz 244 s 62.256 ms 01 64 hz 15.625 ms 3.984 s 10 1 hz 1 s 255 s 11 1 ? 60 hz 60 s 15300 s
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 31 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal ? when the watchdog timer counter reaches 1, the watchdog timer flag wdtf (register control_2) is set logic 1 ? when a minute or second interrupt occurs, the minute/second flag msf (register control_2) is set logic 1 (see section 8.12.1 ). the watchdog timer flag wdtf is read only and cannot be cleared with the interface. wdtf can be cleared by ? loading a value in register watchdg_tim_val ? reading of the register control_2 writing logic 0 or logic 1 to wdtf has no effect. 8.10.4 pre-defined timers: second and minute interrupt PCF2129A has two pre-defined timers which are used to generate an interrupt either once per second or once per minute. the pulse generator for the minute or second interrupt operates from an internal 64 hz clock. it is independent of the watchdog timer. each of these timers can be enabled by the bits si (second interrupt) and mi (minute interrupt) in register control_1. 8.10.5 clearing flags the flags msf, af, and tsfx can be cleared by using the interface. to prevent one flag being overwritten while clearing another, a logic and is performed during the write access. a flag is cleared by writing logic 0 wh ilst a flag is not cleared by writing logic 1. writing logic 1 will result in t he flag value rema ining unchanged. two examples are given for clearing the flags. clearing a flag is made by a write command: ? bits labeled with - must be wri tten with their previous values ? bits labeled with t have to be written with logic 0 ? wdtf is read only and has to be written with logic 0 repeatedly re-writing these bits has no influence on the functional behavior. counter reached 1, wdtf is logic 1, an interrupt is generated. fig 17. wd_cd set logic 1: watchdog act ivates an interrup t when timed out 001aag06 2 watchdog timer value wdtf n = 1 n mcu int
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 32 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal the following tables show what instruction mu st be sent to clear the appropriate flag. [1] the bits labeled as - have to be re written with the previous values. [1] the bits labeled as - have to be re written with the previous values. table 33. flag location in register control_2 register bit 7 6 5 4 3 2 1 0 control_2 msf wdtf tsf2 af t - - t table 34. example values in register control_2 register bit 7 6 5 4 3 2 1 0 control_2 10110000 table 35. example to clear only af (bit 4) register bit 7 6 5 4 3 2 1 0 control_2 101000 [1] 0 [1] 0 table 36. example to clear only msf (bit 7) register bit 7 6 5 4 3 2 1 0 control_2 001100 [1] 0 [1] 0
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 33 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 8.11 timestamp function the PCF2129A has an active low timestamp input pin ts , internally pulled with an on-chip pull-up resistor to the internal power supply of the device. it also has a timestamp detection circuit which can detect two different events: 1. input on the pin ts is driven to an intermediate level between the power supply and ground. 2. input on the pin ts is driven to ground. the timestamp function is enabled by default af ter power-on and it can be switched off by setting the control bit tsof f (register timestp_ctl). a most common application of the timestamp function is described in the application note ref. 3 ? an10857 ? . see section 8.12.5 for a description of interrupt gene ration from the timestamp function. 8.11.1 timestamp flag 1. when the ts input pin is driven to an intermediate level between the power supply and ground then the following sequence occurs: a. the actual date and time are stored in the timestamp registers. b. the timestamp flag tsf1 (register control_1) is set. c. if the tsie bit (register control_2) is active, an interrupt on the int pin is generated. the tsf1 flag can be cleared by using the interface. clearing the flag will clear the interrupt. once tsf1 is cleared it will only be set again when a new negative edge on pin ts is detected. 2. when the ts input pin is driven to ground the following sequence occurs: a. the actual date and time are stored in the timestamp registers. b. in addition to the tsf1 flag, the ts f2 flag (register control_3) is set. c. if the tsie bit is active, an interrupt on the int pin is generated. fig 18. timestamp detection with two push-buttons on one the ts pin (e.g. for tamper detection) 116 pcf212xa 215 314 413 512 611 710 89 ts v ss v dd 013aaa17 6 r2 = 200 k 5 % r1 = 200 k 20 % push-button 1 connected to cover 1 push-button 2 connected to cover 2
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 34 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal the tsf1 and tsf2 flags can be cleared by using the interface; clearing both flags will clear the interrupt. once tsf2 is cl eared it will only be set again when pin ts is driven to ground once again. 8.11.2 timestamp mode the timestamp function has two different modes selected by the control bit tsm (timestamp mode) in register timestp_ctl: ? if tsm is logic 0 (default): in subsequent tr igger events without clearing the timestamp flags, the last timestamp event is stored ? if tsm is logic 1: in subsequent trigger events without clearing the timestamp flags, the first timestamp event is stored the timestamp function also depends on the control bit btse (battery switch timestamp enable) in register control_3, see section 8.11.4 . 8.11.3 timestamp registers 8.11.3.1 register timestp_ctl [1] default value. 8.11.3.2 register sec_timestp 8.11.3.3 register min_timestp table 37. timestp_ctl - timestamp control register (address 12h) bit description bit symbol value description 7tsm 0 [1] in subsequent events without clearing the timestamp flags, the last event is stored 1 in subsequent events without clearing the timestamp flags, the first event is stored 6tsoff 0 [1] timestamp function active 1 timestamp function disabled 5 - - unused 4 to 0 1_o_16_timestp[4:0] 1 ? 16 second timestamp information coded in bcd format table 38. sec_timestp - second timestamp re gister (address 13h) bit description bit symbol value place value description 7 - - - unused 6 to 4 second_timestp 0 to 5 ten?s place second timestamp information coded in bcd format 3to0 0to9 unit place table 39. min_timestp - minute timestamp register (address 14h) bit description bit symbol value place value description 7 - - - unused 6 to 4 minute_timestp 0 to 5 ten?s place minute timestamp information coded in bcd format 3to0 0to9 unit place
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 35 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 8.11.3.4 register hour_timestp [1] hour mode is set by the bit 12_24 in register control_1. 8.11.3.5 register day_timestp 8.11.3.6 register mon_timestp 8.11.3.7 register year_timestp table 40. hour_timestp - hour timestamp register (address 15h) bit description bit symbol value place value description 7to6 - - - unused 12 hour mode [1] 5 ampm 0 - indicates am 1 - indicates pm 4 hour_timestp 0 to 1 ten?s place hour timestamp information coded in bcd format when in 12 hour mode 3to0 0to9 unit place 24 hour mode [1] 5 to 4 hour_timestp 0 to 2 ten?s place hour timestamp information coded in bcd format when in 24 hour mode 3to0 0to9 unit place table 41. day_timestp - day timestamp re gister (address 16h) bit description bit symbol value place value description 7to6 - - - unused 5 to 4 day_timestp 0 to 3 ten?s place day timestamp information coded in bcd format 3to0 0to9 unit place table 42. mon_timestp - month timestamp register (address 17h) bit description bit symbol value place value description 7to5 - - - unused 4 month_timestp 0 to 1 ten?s place month timestamp information coded in bcd format 3to0 0to9 unit place table 43. year_timestp - year timestamp re gister (address 18h) bit description bit symbol value place value description 7 to 4 year_timestp 0 to 9 ten?s place year timestamp information coded in bcd format 3to0 0to9 unit place
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 36 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 8.11.4 dependency between battery switch-over and timestamp the timestamp function depends on the co ntrol bit btse in register control_3: [1] default value. table 44. battery switch-over and timestamp btse bf description 0- [1] the battery switch-over does not affect the timestamp registers 1 if a battery switch-over event occurs: 0 the timestamp registers store the time and date when the switch-over occurs; after this event occurr ed bf is set logic 1 1 the timestamp registers are not modified; in this condition subsequent battery switch-over events or falling edges on pin ts are not registered
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 37 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 8.12 interrupt output, int PCF2129A has an interrupt output pin int which is open-drain, active low. interrupts may be sourced from different places: ? second or minute timer ? watchdog timer ? alarm ? timestamp ? battery switch-over ? battery low detection when si, mi, wd_cd, aie, tsie, bie, blie are all disabled, int will remain high-impedance. fig 19. interrupt block diagram blf: battery low flag set set battery low flag, blf to interface: read blf blie 001aaj39 9 from battery low detection circuit: clear bf clear bf: battery flag set set battery flag, bf to interface: read bf bie from interface: clear bf clear tsfx: timestamp flag set set timestamp flag, tsfx to interface: read tsfx tsie from interface: clear tsf clear af: alarm flag set set alarm flag, af to interface: read af aie from interface: clear af clear wdtf: watchdog timer flag set watchdog counter to interface: read wd_cd wd_cd = 0 wd_cd = 1 mcu loading watchdog counter clear int pin msf: minute second flag set minutes counter seconds counter to interface: read msf si/mi ti_tp 0 1 from interface: clear msf clear si mi pulse generator 1 trigger clear
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 38 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal the control bit ti_tp (register watchdg_tim_ ctl) is used to configure whether the interrupts generated from the second/minute timer (flag msf in register control_2) are pulsed signals or a permanently active signal. all the other interrupt sources generate a permanently active interrupt si gnal which follows the status of the corresponding flags. when the interrupt sources are all disabled, int remains high-impedance. ? the flags msf, af, tsfx, and bf can be cleared by using the interface. ? the flag wdtf is read only. how it can be cleared is explained in section 8.10.5 . ? the flag blf is read only. it is cleared automatically from the battery low detection circuit when the battery is replaced. 8.12.1 minute and second interrupts minute and second interrupts are generate d by predefined timers. the timers can be enabled independently from one another by the bits mi and si in register control_1. however, a minute interrupt enabled on top of a second interrupt will not be distinguishable since it will occur at the same time. the minute/second flag msf (register control_2) is set logic 1 when either the seconds or the minutes counter increments according to the actually enabled interrupt (see ta b l e 4 5 ). the msf flag can be read and cleared by the interface. when msf is set logic 1: ? if ti_tp is logic 1 the interrupt is generated as a pulsed signal. ? if ti_tp is logic 0 the interrupt is permanent ly active signal that remains until msf is cleared. table 45. effect of bits mi and si on pin int and bit msf mi si result on int result on msf 0 0 no interrupt generated msf never set 1 0 an interrupt once per minute msf set when minutes counter increments 0 1 an interrupt once per second msf set when seconds counter increments 1 1 an interrupt once per second msf set when seconds counter increments in this example, bit ti_tp is logic 1 and the msf flag is not cleared after an interrupt. fig 20. int example for si and mi when ti_tp is logic 1 001aaf9 05 58 59 59 00 11 seconds counter minutes counter int when si enabled msf when si enabled int when only mi enabled msf when only mi enabled 12 00 01
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 39 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal the pulse generator for the minute/second interrupt operates from an internal 64 hz clock and generates a pulse of 1 ? 64 seconds in duration. 8.12.2 int pulse shortening if the msf flag (register control_2) is cleared before the end of the int pulse, then the int pulse is shortened. this a llows the source of a system interrupt to be cleared immediately when it is serviced , i.e. the system does not have to wait for the completion of the pulse before continuing; see figure 22 . instructions for clearing the bit msf can be found in section 8.10.5 . 8.12.3 watchdog timer interrupts the generation of interrupts from the watchdog timer is controlled using the wd_cd bit (register watchdg_tim_ctl). the interrupt is generated as an active signal which follows the status of the watchdog timer flag wdtf (register control_2). no pulse generation is possible for watchdo g timer interrupts. in this example, bit ti_tp is logic 0 an d the msf flag is cleared after an interrupt. fig 21. int example for si and mi when ti_tp is logic 0 001aag07 2 58 seconds counter minutes counter int when si enable msf when si enable int when only mi enabled msf when only mi enabled 59 59 11 00 00 01 12 (1) indicates normal duration of int pulse. the timing shown for clearing bit msf is also va lid for the non-pulsed interrupt mode, i.e. when ti_tp is logic 0, where the int pulse may be shortened by setting both bits mi and si logic 0. fig 22. example of shortening the int pulse by clearing the msf flag 001aaf90 8 58 seconds counter msf int scl instruction 59 clear instruction 8th clock (1)
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 40 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal the interrupt is cleared when the flag wdtf is reset. wdtf is a read only bit and cannot be cleared by using the interface. instructions for clearing it can be found in section 8.10.5 . 8.12.4 alarm interrupts generation of interrupts from the alarm function is controlled via the bit aie (register control_2). if aie is enabled, the int pin will follow the status of bit af (register control_2). clearing af will immediately clear int . no pulse generation is possible for alarm interrupts. 8.12.5 timestamp interrupts interrupt generation from the timestamp function is controlled using the tsie bit (register control_2). if tsie is enabled the int pin follows the status of the flags tsfx. clearing the flags tsfx immediately clears int . no pulse generation is possible for timestamp interrupts. 8.12.6 battery switch-over interrupts generation of interrupts from the battery swit ch-over is controlled via the bie bit (register control_3). if bie is enabled, the int pin follows the status of bit bf (register control_3). clearing bf immediately clears int . no pulse generation is possible for battery switch-over interrupts. 8.12.7 battery low detection interrupts generation of interrupts from the battery low detection is controlled via the blie bit (register control_3). if blie is enabled the int pin will follow the status of bit blf (register control_3). the interrup t is cleared when the battery is replaced (blf is logic 0) or when bit blie is disabled (blie is logic 0). blf is read only and therefore cannot be cleared via the interface. example where only the minute alarm is used and no other interrupts are enabled. fig 23. af timing diagram 001aaf9 10 44 45 minute counter minute alarm af int scl instruction 45 clear instruction 8th clock
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 41 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 8.13 external clock test mode a test mode is available which allows on-board test ing. in this mode it is possible to set up test conditions and control the operation of the rtc. the test mode is entered by setting bit ext_test logic 1 (register control_1). then pin clkout becomes an input. the test mode repl aces the internal clock signal (64 hz) with the signal applied to pin clkout. ever y 64 positive edges applied to pin clkout generate an increment of one second. the signal applied to pin clkout should have a minimum pulse width of 300 ns and a maximum period of 1000 ns. the internal cl ock, now sourced from clkout, is divided down by a 2 6 divider chain called prescaler (see prescaler in table 46 ). the prescaler can be set into a known state by using bit stop. when bit stop is logic 1, the prescaler is reset to 0. stop must be cleared before the prescaler can operate again. from a stop condition, the fi rst 1 second increment will take place after 32 positive edges on pin clkout. thereafter, every 64 posit ive edges will cause a 1 second increment. remark: entry into test mode is not synchroni zed to the internal 64 hz clock. when entering the test mode, no assumption as to the state of the prescaler can be made. operating example: 1. set ext_test test mode (registe r control_1, ext_test is logic 1). 2. set bit stop (register co ntrol_1, stop is logic 1). 3. set time registers to desired value. 4. clear stop (register control_1, stop is logic 0). 5. apply 32 clock pulses to clkout. 6. read time registers to see the first change. 7. apply 64 clock pulses to clkout. 8. read time registers to see the second change. repeat 7 and 8 for additional increments.
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 42 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 8.14 stop bit function the function of the stop bit is to allow for ac curate starting of the time circuits. stop will cause the upper part of the prescaler (f 9 to f 14 ) to be held in reset and thus no 1 hz ticks are generated. the time circuits can then be set an d will not increment until the stop bit is released. stop will not affect the clkout si gnal but the output of the prescaler in the range of 32 hz to 1 hz (see figure 24 ). the lower stages of the prescaler, f 0 to f 8 , are not reset and because the i 2 c-bus and the spi-bus are asynchronous to the crystal oscillator, the accuracy of re-starting the time circuits is between 0 and one 64 hz cycle (0.484375 s and 0.500000 s), see table 46 and figure 25 . [1] f 0 is clocked at 32.768 khz. table 46. first increment of time circuits after stop release bit stop prescaler bits [1] f 0 to f 8 - f 9 to f 14 1hz tick time hh:mm:ss comment clock is running normally 0 010000111-010100 12:45:12 prescaler counting normally stop bit is activated by user. f 0 to f 8 are not reset and values cannot be predicted externally 1 xxxxxxxxx-000000 12:45:12 prescaler is reset; time circuits are frozen new time is set by user 1 xxxxxxxxx-000000 08:00:00 prescaler is reset; time circuits are frozen stop bit is released by user 0 xxxxxxxxx-000000 08:00:00 prescaler is now running 0 xxxxxxxxx-100000 08:00:00 0 xxxxxxxxx-100000 08:00:00 0 xxxxxxxxx-110000 08:00:00 :: : 0 111111111-111110 08:00:00 0 000000000-000001 08:00:01 0 to 1 transition of f14 increments the time circuits 0 100000000-000001 08:00:01 :: : 0 111111111-111111 08:00:01 0 000000000-000000 08:00:01 0 100000000-000000 :: : 0 111111111-111110 08:00:01 0 000000000-000001 08:00:02 0 to 1 transition of f14 increments the time circuits 001aaj479 0.484375 - 0.500000 s 1 s
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 43 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal fig 24. stop bit functional diagram 001aaj34 2 osc 32768 hz f 0 16384 hz f 1 8192 hz f 2 4096 hz 128 hz f 8 res f 9 64 hz res f 10 lower prescaler upper prescaler res f 13 res stop 1 hz tick f 14 fig 25. stop bit release timing 001aaj34 3 0 ms - 15.625 ms 64 hz stop released
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 44 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 9. interfaces the PCF2129A has a selectable i 2 c-bus or spi-bus interface. the selection is done using the interface selection pin ifs (see ta b l e 4 7 ). table 47. interface selection input pin ifs pin connection bus interface reference ifs v ss spi-bus section 9.1 bbs i 2 c-bus section 9.2 to select the spi-bus interface, pin ifs has to be connected to pin v ss . to select the i 2 c-bus interface pin ifs has to be connected to pin bbs. a. spi-bus interface selection b. i 2 c-bus interface selection fig 26. interface selection 001aaj70 6 1 v dd bbs scl ce 20 PCF2129A 2 sdi 19 3 sdo 18 4 sda/ce 17 5 ifs 16 615 714 8 v ss 13 912 10 11 sdo sdi scl v dd v ss 001aaj70 7 1 v dd bbs scl 20 PCF2129A 2 sdi 19 3 sdo 18 4 sda/ce 17 5 ifs 16 615 714 8 v ss v ss 13 sda scl r pu r pu v dd 912 10 11
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 45 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 9.1 spi-bus interface data transfer to and from the devic e is made via a 3 line spi-bus (see ta b l e 4 8 ). the data lines for input and output are split. the data input and output line can be connected together to facilitate a bi directional data bus (see figure 27 ). the spi-bus is initialized whenever the chip enable line pin ce is inactive. [1] the chip enable must not be wired permanently low. 9.1.1 data transmission the chip enable signal is used to identify t he transmitted data. each data transfer is a byte, with the most signif icant bit (msb) sent first. the transmission is controlled by the active low chip enable signal sda/ce . the first byte transmitted is the comman d byte. subsequent bytes will be either data to be written or data to be read (see figure 28 ). the command byte defines the address of th e first register to be accessed and the read/write mode. the address counter will auto increm ent after every access and will reset to zero after the last valid register is accessed. the read/write bit (r/w ) defines if the following bytes will be read or write information. fig 27. sdi, sdo configurations table 48. serial interface symbol function description sda/ce chip enable input; active low [1] when high, the interface is reset; input may be higher than v dd scl serial clock input when ce is high, input may float; input may be higher than v dd sdi serial data input when ce is high, input may float; input may be higher than v dd ; input data is sampled on the rising edge of scl sdo serial data output push-pull output; drives from v ss to v bbs ; output data is changed on the falling edge of scl 001aai56 0 sdi two wire mode sdo sdi single wire mode sdo fig 28. data transfer overview 001aaj34 7 data bus ce command data data data
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 46 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal table 49. command byte definition bit symbol value description 7r/w data read or write selection 0 write data 1 read data 6 to 5 sa 01 subaddress; other codes will cause the device to ignore data transfer 4 to 0 ra 00h to 1dh register address range in this example, the register seconds is set to 45 seconds and the register minutes to 10 minutes. fig 29. spi-bus write example 001aaj3 48 seconds data 45 bcd minutes data 10 bcd addr 34 bin r/w 02 xx 03 04 scl sdi sda/ce address counter b7 0 b6 0 b5 1 b4 0 b3 0 b2 0 b1 1 b0 0 b7 0 b6 1 b5 0 b4 0 b3 0 b2 1 b1 0 b0 1 b7 0 b6 0 b5 0 b4 1 b3 0 b2 0 b1 0 b0 0 in this example, the registers months and years are read. the pins sdi and sdo are not connected together. for this configuration, it is important that pin sdi is never left floa ting. it must always be driven either high or low. if pin sdi is left open, high i dd currents may result. fig 30. spi-bus read example 001aaj3 49 months data 11 bcd years data 06 bcd addr 34 bin r/w 02 xx 03 09 scl sdi sda/ce address counter b7 1 b6 0 b5 1 b4 0 b3 0 b2 0 b1 1 b0 0 b7 0 b6 0 b5 0 b4 1 b3 0 b2 0 b1 0 b0 1 b7 0 b6 0 b5 0 b4 0 b3 0 b2 1 b1 1 b0 0 sdo
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 47 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 9.2 i 2 c-bus interface the i 2 c-bus is for bidirectional, two-line communication between different ics or modules. the two lines are a serial data line (sda) and a serial clock line (scl). both lines are connected to a positive supply via a pull-up re sistor. data transfer is initiated only when the bus is not busy. 9.2.1 bit transfer one data bit is transferred during each clock pulse. the data on the sda line remains stable during the high period of the clock pulse as changes in the data line at this time are interpreted as control signals (see figure 31 ). 9.2.2 start and stop conditions both data and clock lines remain high when the bus is not busy. a high-to-low transition of the data line, while the clock is high, is defined as the start condition s. a low-to-high transition of the data line while the clock is high is defined as the stop condition p (see figure 32 ). for this device a repeated start is not allowed for reading. therefore a stop has to be released before the next start. 9.2.3 system configuration a device generating a message is a transmit ter; a device receiving a message is the receiver. the device that controls the message is the master; and the devices which are controlled by the master are the slaves. the PCF2129A can act as a slave transmitter and a slave receiver. fig 31. bit transfer mbc62 1 data line stable; data valid change of data allowed sda scl fig 32. definition of start and stop conditions mbc62 2 sda scl p stop condition sda scl s start condition
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 48 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 9.2.4 acknowledge the number of data bytes transferred between the start and stop conditions from transmitter to receiver is unlim ited. each byte of eight bits is followed by an acknowledge cycle. ? a slave receiver, which is addressed, must generate an acknowledge after the reception of each byte. ? a master receiver must generate an acknowle dge after the reception of each byte that has been clocked out of the slave transmitter. ? the device that acknowledges must pull-down the sda line during the acknowledge clock pulse, so that the sda line is st able low during the high period of the acknowledge related clock pulse (set-up and hold times must be taken into consideration). ? a master receiver must signal an end of da ta to the transmitter by not generating an acknowledge on the last byte that has been cl ocked out of the slave. in this event, the transmitter must leave the data line high to enable the master to generate a stop condition. acknowledgement on the i 2 c-bus is illustrated in figure 34 . 9.2.5 i 2 c-bus protocol after a start condition a valid hardware address has to be sent to a PCF2129A device. the appropriate i 2 c-bus slave address is 1010001. the entire i 2 c-bus slave address byte is shown in table 50 . fig 33. system configuration mba60 5 master transmitter receiver slave receiver slave transmitter receiver master transmitter master transmitter receiver sda scl fig 34. acknowledgement on the i 2 c-bus mbc60 2 s start condition 9 8 2 1 clock pulse for acknowledgement not acknowledge acknowledge data output by transmitter data output by receiver scl from master
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 49 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal the r/w bit defines the direction of the following si ngle or multiple byte data transfer (read is logic 1, write is logic 0). for the format and the timing of the start c ondition (s), the stop condition (p), and the acknowledge bit (a) refer to the i 2 c-bus specification ref. 13 ? um10204 ? and the characteristics table ( ta b l e 5 5 ). in the write mode a data transfer is terminated by sending either a stop condition or the start condition of the next data transfer. table 50. i 2 c slave address byte slave address bit 7 6 5 4 3 2 1 0 msb lsb 1010001r/w fig 35. bus protocol, writing to registers 001aaj72 3 s 1 0 1 slave address register address 00h to 1dh 0 to n data bytes write bit start/ stop acknowledge from PCF2129A acknowledge from PCF2129A acknowledge from PCF2129A 0 0 0 1 0 a a a p/s fig 36. bus protocol, reading from registers 001aaj72 4 s 1 0 1 slave address 0 to n data bytes data byte last data byte read bit acknowledge from PCF2129A acknowledge from master no acknowledge 0 0 0 1 1 a a s 1 0 1 slave address register address 00h to 1dh set register address read register data write bit stop acknowledge from PCF2129A acknowledge from PCF2129A 0 0 0 1 0 a a p a p
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 50 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 10. internal circuitry fig 37. device diode protection diagram of PCF2129A 001aaj705 scl sdi sdo sda/ce ifs ts clkout v ss PCF2129A int bbs v bat v dd
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 51 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 11. limiting values [1] pass level; human body model (hbm) according to ref. 7 ? jesd22-a114 ? . [2] pass level; machine model (mm), according to ref. 8 ? jesd22-a115 ? . [3] pass level; charged-device model (cdm), according to ref. 9 ? jesd22-c101 ? . [4] pass level; latch-up testing according to ref. 10 ? jesd78 ? at maximum ambient temperature (t amb(max) ). [5] according to the nxp store and transport requirements (see ref. 12 ? nx3-00092 ? ) the devices have to be stored at a temperature of +8 c to +45 c and a humidity of 25 % to 75 %. for long term storage products deviant conditions are described in that document. table 51. limiting values in accordance with the absolute maximum rating system (iec 60134). symbol parameter conditions min max unit v dd supply voltage ? 0.5 +4.5 v i dd supply current ? 50 +50 ma v i input voltage ? 0.5 +6.5 v i i input current ? 10 +10 ma v o output voltage ? 0.5 +6.5 v i o output current ? 10 +10 ma at pin sda ? 10 +20 ma v bat battery supply voltage ? 0.5 +4.5 v p tot total power dissipation - 300 mw t amb ambient temperature ? 40 +85 c v esd electrostatic discharge voltage hbm [1] - 3000 v mm [2] - 250 v cdm [3] - 1500 v i lu latch-up current [4] -200ma t stg storage temperature [5] ? 55 +85 c
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 52 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 12. static characteristics table 52. static characteristics v dd = 1.8 v to 4.2 v; v ss =0v; t amb = ? 40 c to +85 c, unless otherwise specified. symbol parameter conditions min typ max unit supplies v dd supply voltage [1] 1.8 - 4.2 v v bat battery supply voltage 1.8 - 4.2 v v dd(cal) calibration supply voltage - 3.3 - v v low low voltage - 1.2 - v i dd supply current interface active spi-bus f scl = 6.5 mhz - - 800 a f scl = 1.0 mhz - - 200 a i 2 c-bus f scl = 1.0 mhz - - 200 a interface inactive (f scl =0hz) clkout disabled (cof[2:0] = 111), one power supply v dd (pwrmng[2:0] = 111), timestamp detection disabled (tsoff = 1) [2] v dd =2.0v - 500 - na v dd = 3.3 v - 700 1500 na v dd =4.2v - 800 - na clkout enabled at 32 khz (default), one power supply v dd (pwrmng[2:0] = 111), timestamp detection disabled (tsoff = 1) v dd =2.0v - 600 - na v dd =3.3v - 850 - na v dd =4.2v - 1050 - na clkout disabled (cof[2:0] = 111), power management functions enabled (default), timestamp de tection enabled (default) v dd =2.0v - 1800 - na v dd =3.3v - 2150 - na v dd = 4.2 v - 2350 3500 na clkout enabled at 32 khz (default); power management functions enabled (default), timestamp de tection enabled (default) v dd =2.0v - 1900 - na v dd =3.3v - 2300 - na v dd =4.2v - 2600 - na i bat battery supply current v dd active; v bat = 3.0 v - 50 100 na power management v th(sw)bat battery switch threshold voltage -2.5-v v th(bat)low low battery threshold voltage - 2.5 - v
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 53 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal [1] for reliable oscillator start-up at power-on: v dd(po)min =v dd(min) +0.3v. [2] timer source clock = 1 ? 60 hz, level of pins sda/ce , sdi, and scl is v dd or v ss . [3] tested on sample basis. 12.1 current consumption i dd characteristics, typical inputs v i input voltage ? 0.5 - v dd +0.5 v v il low-level input voltage - - 0.25v dd v t amb = ? 20 c to +85 c; v dd > 2.0 v --0.3v dd v v ih high-level input voltage 0.7v dd --v i li input leakage current v i =v dd or v ss ? 10 +1 a c i input capacitance [3] --7pf outputs v o output voltage on pins clkout, int , referring to external pull-up ? 0.5 - 5.5 v on pin sdo ? 0.5 - v bbs + 0.5 v i ol low-level output current output sink current; v ol = 0.4 v; v dd = 4.2 v on pin sda 20 - - ma on all other outputs 1.0 - - ma i oh high-level output current output source current; on pin sdo; v oh = 3.8 v; v dd = 4.2 v 1.0--ma i lo output leakage current v o = v dd or v ss ? 10 1 a table 52. static characteristics ?continued v dd = 1.8 v to 4.2 v; v ss =0v; t amb = ? 40 c to +85 c, unless otherwise specified. symbol parameter conditions min typ max unit clkout disabled; pwrmng[2:0] = 111; tsoff = 1; ts input floating. fig 38. i dd as a function of temperature temperature ( c) ? 40 100 80 60 020 ? 20 40 001aaj432 0.8 1.2 0.4 1.6 2.0 i dd ( a) 0 v dd = 3 v v dd = 2 v
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 54 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal a. pwrmng[2:0] = 111; tsoff = 1; t amb =25 c; ts input floating. b. pwrmng[2:0] = 000; tsoff = 0; t amb =25 c; ts input floating. fig 39. i dd as a function of v dd v dd (v) 1.8 4.2 3.4 2.6 2.2 3.8 3.0 001aaj433 0.8 1.2 0.4 1.6 2.0 i dd ( a) 0 clkout off clkout enabled at 32 khz v dd (v) 1.8 4.2 3.4 2.6 2.2 3.8 3.0 001aaj434 1.6 2.4 0.8 3.2 4.0 i dd ( a) 0 clkout off clkout enabled at 32 khz
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 55 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 12.2 frequency characteristics [1] 1 ppm corresponds to a time deviation of 0.0864 seconds per day. [2] not production tested. effects of reflow solder not included (see ref. 3 ? an10857 ? ). table 53. frequency characteristics v dd = 1.8 v to 4.2 v; v ss =0v; t amb =+25 c, unless otherwise specified. symbol parameter conditions min typ max unit f o output frequency on pin clkout; v dd or v bat = 3.3 v; cof[2:0] = 000; ao[3:0] = 1000 - 32.768 - khz f/f frequency stability v dd or v bat = 3.3 v t amb = ? 15 c to +60 c [1] - 3 5ppm t amb = ? 25 cto ? 15 c and t amb =+60 cto+65 c [1] - 5 10 ppm f xtal /f xtal relative crystal frequency vari ation crystal aging, first year; v dd or v bat = 3.3 v [2] -- 3ppm f/ v frequency variation with voltage on pin clkout - 1- ppm/v (1) temperature compensated frequency. (2) uncompensated typical tuni ng-fork crystal frequency. fig 40. characteristic of frequency with respect to temperature temperature ( c) ? 40 100 60 080 40 ? 20 20 001aaj650 ? 40 0 40 frequency stability (ppm) ? 80 10 ppm 5 ppm 10 ppm (1) (2)
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 56 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 13. dynamic characteristics 13.1 spi-bus timi ng characteristics [1] no load value; bus will be held up by bus capacitance; use rc time constant with application values. table 54. spi-bus characteristics v dd = 1.8 v to 4.2 v; v ss =0v; t amb = ? 40 c to +85 c, unless otherwise specified. all timing values are valid within the operating supply voltage at ambien t temperature and referenced to v il and v ih with an input voltage swing of v ss to v dd (see figure 41 ). symbol parameter conditions v dd =1.8v v dd =4.2v unit min max min max pin scl f clk(scl) scl clock frequency - 2.0 - 6.5 mhz t scl scl time 800 - 140 - ns t clk(h) clock high time 100 - 70 - ns t clk(l) clock low time 400 - 70 - ns t r rise time for scl signal - 100 - 30 ns t f fall time for scl signal - 100 - 30 ns pin ce t su(ce_n) ce_n set-up time 60 - 30 - ns t h(ce_n) ce_n hold time 40 - 25 - ns t rec(ce_n) ce_n recovery time 100 - 30 - ns t w(ce_n) ce_n pulse width - 0.99 - 0.99 s pin sdi t su set-up time set-up time for sdi data 70 - 20 - ns t h hold time hold time for sdi data 70 - 20 - ns pin sdo t d(r)sdo sdo read delay time c l = 50 pf - 225 - 55 ns t dis(sdo) sdo disable time [1] - 90 - 25 ns t t(sdi-sdo) transition time from sdi to sdo to avoid bus conflict 0 - 0 - ns
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 57 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal fig 41. spi-bus timing 013aaa152 r/w sa2 ra0 b7 b6 b0 b7 b6 b0 b0 b6 b7 sdi sdo sdo high-z high-z sdi scl ce write read t w(ce_n) 80% 20% t clk(l) t f t h(ce_n) t rec(ce_n) t dis(sdo) t d(r)sdo t r t h t su t clk(h) t su(ce_n) t clk(scl) t t(sdi-sdo)
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 58 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 13.2 i 2 c-bus timing characteristics [1] the minimum scl clock freq uency is limited by the bus time-out feature which resets the serial bus interface if either the s da or scl is held low for a minimum of 25 ms. the bus time -out feature must be disabled for dc operation. [2] a master device must internally provide a hold time of at least 300 ns for the sda signal (refer to the v il of the scl signal) in order to bridge the undefined region of the scl?s falling edge. [3] c b is the total capacitance of one bus line in pf. [4] the maximum t f for the sda and scl bus lines is 300 ns. the maximum fall time for the sda output stage, t f is 250 ns. this allows series protection resistors to be connected between the sda pin, the scl pin, and the sda/scl bus lines without exceeding the maximum t f . [5] t vd;ack is the time of the acknowledgement si gnal from scl low to sda (out) low. [6] t vd;dat is the minimum time for valid sda (out) data following scl low. [7] input filters on the sda and scl inputs suppr ess noise spikes of less than 50 ns. table 55. i 2 c-bus characteristics all timing characteristics are valid within the operating suppl y voltage and ambient temperature range and reference to 30 % and 70 % with an input voltage swing of v ss to v dd (see figure 42 ). symbol parameter standard mode fast-mode (fm) fast-mode plus (fm+) unit min max min max min max pin scl f scl scl clock frequency [1] 0 100 0 400 0 1000 khz t low low period of the scl clock 4.7 - 1.3 - 0.5 - s t high high period of the scl clock 4.0 - 0.6 - 0.26 - s pin sda t su;dat data set-up time 250 - 100 - 50 - ns t hd;dat data hold time 0 - 0 - 0 - ns pins scl and sda t buf bus free time between a stop and start condition 4.7 - 1.3 - 0.5 - s t su;sto set-up time for stop condition 4.0 - 0.6 - 0.26 - s t hd;sta hold time (repeated) start condition 4.0 - 0.6 - 0.26 - s t su;sta set-up time for a repeated start condition 4.7 - 0.6 - 0.26 - s t r rise time of both sda and scl signals [2] [3] [4] - 1000 20 + 0.1c b 300 - 120 ns t f fall time of both sda and scl signals [2] [3] [4] - 300 20 + 0.1c b 300 - 120 ns t vd;ack data valid acknowledge time [5] 0.1 3.45 0.1 0.9 0.05 0.45 s t vd;dat data valid time [6] 300 - 75 - 75 450 ns t sp pulse width of spikes that must be suppressed by the input filter [7] -50-50- 50ns
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 59 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 14. application information for information about application configuration see ref. 3 ? an10857 ? . fig 42. i 2 c-bus timing diagram; rise and fall times refer to 30 % and 70 % protocol scl sda mbd82 0 bit 0 lsb (r/w) t hd;sta t su;dat t hd;dat t vd;dat t su;sto t f r t t buf t su;sta t low t high 1 / f scl start condition (s) bit 7 msb (a7) bit 6 (a6) acknowledge (a) stop condition (p)
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 60 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 15. package outline fig 43. package outline sot163-1 (so20) unit a max. a 1 a 2 a 3 b p cd (1) e (1) (1) eh e ll p q z y w v references outline version european projection issue date iec jedec jeita mm inches 2.65 0.3 0.1 2.45 2.25 0.49 0.36 0.32 0.23 13.0 12.6 7.6 7.4 1.27 10.65 10.00 1.1 1.0 0.9 0.4 8 0 o o 0.25 0.1 dimensions (inch dimensions are derived from the original mm dimensions) note 1. plastic or metal protrusions of 0.15 mm (0.006 inch) maximum per side are not included. 1.1 0.4 sot163-1 10 20 w m b p detail x z e 11 1 d y 0.25 075e04 ms-013 pin 1 index 0.1 0.012 0.004 0.096 0.089 0.019 0.014 0.013 0.009 0.51 0.49 0.30 0.29 0.05 1.4 0.055 0.419 0.394 0.043 0.039 0.035 0.016 0.01 0.25 0.01 0.004 0.043 0.016 0.01 0 5 10 mm scale x a a 1 a 2 h e l p q e c l v m a (a ) 3 a s o20: plastic small outline package; 20 leads; body width 7.5 mm sot163 -1 99-12-27 03-02-19
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 61 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 16. soldering for information about soldering see ref. 3 ? an10857 ? . 17. abbreviations table 56. abbreviations acronym description am ante meridiem bcd binary coded decimal cdm charged-device model cmos complementary metal oxide semiconductor dc direct current gps global positioning system hbm human body model i 2 c inter-integrated circuit ic integrated circuit lsb least significant bit mcu microcontroller unit mm machine model msb most significant bit pm post meridiem por power-on reset poro power-on reset override ppm parts per million rc resistance-capacitance rtc real time clock scl serial clock line sda serial data line spi serial peripheral interface sram static random access memory tcxo temperature compensated xtal oscillator xtal crystal
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 62 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 18. references [1] an10365 ? surface mount reflow soldering description [2] an10853 ? handling precautions of esd sensitive devices [3] an10857 ? application and soldering information for pcf2127a and PCF2129A tcxo rtc [4] iec 60134 ? rating systems for electronic tu bes and valves and analogous semiconductor devices [5] iec 61340-5 ? protection of electronic devices from electrostatic phenomena [6] ipc/jedec j-std-020d ? moisture/reflow sensitiv ity classification for nonhermetic solid state surface mount devices [7] jesd22-a114 ? electrostatic discharge (esd) sensitivity testing human body model (hbm) [8] jesd22-a115 ? electrostatic discharge (esd) se nsitivity testing machine model (mm) [9] jesd22-c101 ? field-induced charged-device model test method for electrostatic-discharge-withstand thresh olds of microelectronic components [10] jesd78 ? ic latch-up test [11] jesd625-a ? requirements for handling elec trostatic-discharge-sensitive (esds) devices [12] nx3-00092 ? nxp store and transport requirements [13] um10204 ? i 2 c-bus specification and user manual
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 63 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 19. revision history table 57. revision history document id release date data sheet status change notice supersedes PCF2129A_1 20100113 product data sheet - -
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 64 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 20. legal information 20.1 data sheet status [1] please consult the most recently issued document before initiating or completing a design. [2] the term ?short data sheet? is explained in section ?definitions?. [3] the product status of device(s) described in this document may have changed since this document was published and may differ in case of multiple device s. the latest product status information is available on the internet at url http://www.nxp.com . 20.2 definitions draft ? the document is a draft versi on only. the content is still under internal review and subject to formal approval, which may result in modifications or additions. nxp semiconductors does not give any representations or warranties as to the accuracy or completeness of information included herein and shall hav e no liability for the consequences of use of such information. short data sheet ? a short data sheet is an extract from a full data sheet with the same product type number(s) and title. a short data sheet is intended for quick reference only and should not be relied upon to contain detailed and full information. for detailed and full information see the relevant full data sheet, which is available on request vi a the local nxp semiconductors sales office. in case of any inconsistency or conflict with the short data sheet, the full data sheet shall prevail. 20.3 disclaimers general ? information in this document is believed to be accurate and reliable. however, nxp semiconductors d oes not give any representations or warranties, expressed or implied, as to the accuracy or completeness of such information and shall have no liability for the consequences of use of such information. right to make changes ? nxp semiconductors reserves the right to make changes to information published in this document, including without limitation specifications and product descriptions, at any time and without notice. this document supersedes and replaces all information supplied prior to the publication hereof. suitability for use ? nxp semiconductors products are not designed, authorized or warranted to be suitable for use in medical, military, aircraft, space or life support equipment, nor in applications where failure or malfunction of an nxp semiconductors product can reasonably be expected to result in personal injury, death or severe property or environmental damage. nxp semiconductors accepts no liability for inclusion and/or use of nxp semiconductors products in such equipment or applications and therefore such inclusion and/or use is at the customer?s own risk. applications ? applications that are described herein for any of these products are for illustrative purpos es only. nxp semiconductors makes no representation or warranty that such applications will be suitable for the specified use without further testing or modification. limiting values ? stress above one or more limiting values (as defined in the absolute maximum ratings system of iec 60134) may cause permanent damage to the device. limiting values are stress ratings only and operation of the device at these or any other conditions above those given in the characteristics sections of this document is not implied. exposure to limiting values for extended periods may affect device reliability. terms and conditions of sale ? nxp semiconductors products are sold subject to the general terms and condit ions of commercial sale, as published at http://www.nxp.com/profile/terms , including those pertaining to warranty, intellectual property rights infringement and limitation of liability, unless explicitly otherwise agreed to in writ ing by nxp semiconductors. in case of any inconsistency or conflict between information in this document and such terms and conditions, the latter will prevail. no offer to sell or license ? nothing in this document may be interpreted or construed as an offer to sell products t hat is open for acceptance or the grant, conveyance or implication of any lic ense under any copyrights, patents or other industrial or intellectual property rights. export control ? this document as well as the item(s) described herein may be subject to export control regulations. export might require a prior authorization from national authorities. 20.4 trademarks notice: all referenced brands, produc t names, service names and trademarks are the property of their respective owners. i 2 c-bus ? logo is a trademark of nxp b.v. 21. contact information for more information, please visit: http://www.nxp.com for sales office addresses, please send an email to: salesaddresses@nxp.com document status [1] [2] product status [3] definition objective [short] data sheet development this document contains data from the objecti ve specification for product development. preliminary [short] data sheet qualification this document contains data from the preliminary specification. product [short] data sheet production this docu ment contains the product specification.
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 65 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 22. tables table 1. ordering information . . . . . . . . . . . . . . . . . . . . . .2 table 2. marking codes . . . . . . . . . . . . . . . . . . . . . . . . . .2 table 3. pin description of PCF2129A . . . . . . . . . . . . . .4 table 4. register overview . . . . . . . . . . . . . . . . . . . . . . .6 table 5. control_1 - contro l and status register 1 (address 00h) bit description . . . . . . . . . . . . . . .8 table 6. control_2 - contro l and status register 2 (address 01h) bit description . . . . . . . . . . . . . . .9 table 7. control_3 - contro l and status register 3 (address 0fh) bit description . . . . . . . . . . . . . .10 table 8. clkout_ctl - clkout control register (address 03h) bit description . . . . . . . . . . . . . . 11 table 9. temperature measurement period . . . . . . . . . . 11 table 10. clkout frequency selection . . . . . . . . . . . . . .12 table 11. aging_offset - crystal aging offset register (address 19h) bit description . . . . . . . . . . . . . .13 table 12. frequency correction at 25 c, typical . . . . . .13 table 13. power management control bit description. . . .14 table 14. output pin bbs . . . . . . . . . . . . . . . . . . . . . . . . .17 table 15. seconds - seconds and clock integrity register (address 03h) bit description . . . . . . . .22 table 16. seconds coded in bcd format . . . . . . . . . . . .22 table 17. minutes - minutes register (address 04h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . .22 table 18. hours - hours register (address 05h) bit description . . . . . . . . . . . . . . . . . . . . . . . . .23 table 19. days - days register (address 06h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . .23 table 20. weekdays - weekdays register (address 07h) bit description . . . . . . . . . . . . . .23 table 21. weekday assignments . . . . . . . . . . . . . . . . . . .23 table 22. months - months register (address 08h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . .24 table 23. month assignments in bcd format . . . . . . . . . .24 table 24. years - years register (address 09h) bit description . . . . . . . . . . . . . . . . . . . . . . . . . .24 table 25. second_alarm - second alarm register (address 0ah) bit description . . . . . . . . . . . . . .27 table 26. minute_alarm - minute alarm register (address 0bh) bit description . . . . . . . . . . . . . .27 table 27. hour_alarm - hour alarm register (address 0ch) bit description . . . . . . . . . . . . . .27 table 28. day_alarm - day rearm register (address 0dh) bit description . . . . . . . . . . . . . .28 table 29. weekday_alarm - weekday alarm register (address 0eh) bit description . . . . . . . . . . . . . .28 table 30. watchdg_tim_ctl - watchdog timer control register (address 10h) bit description . . . . . . .29 table 31. watchdg_tim_val - watchdog timer value register (address 11h) bit de scription . . . . . . . .29 table 32. programmable watchdog timer. . . . . . . . . . . . .30 table 33. flag location in register control_2 . . . . . . . . . .32 table 34. example values in register control_2 . . . . . . . .32 table 35. example to clear only af (bit 4) . . . . . . . . . . . .32 table 36. example to clear only msf (bit 7). . . . . . . . . . .32 table 37. timestp_ctl - timestamp control register (address 12h) bit description . . . . . . . . . . . . . . 34 table 38. sec_timestp - second timestamp register (address 13h) bit description . . . . . . . . . . . . . . 34 table 39. min_timestp - minute timestamp register (address 14h) bit description . . . . . . . . . . . . . . 34 table 40. hour_timestp - hour timestamp register (address 15h) bit description . . . . . . . . . . . . . . 35 table 41. day_timestp - day timestamp register (address 16h) bit description . . . . . . . . . . . . . . 35 table 42. mon_timestp - month timestamp register (address 17h) bit description . . . . . . . . . . . . . . 35 table 43. year_timestp - year timestamp register (address 18h) bit description . . . . . . . . . . . . . . 35 table 44. battery switch-over and timestamp . . . . . . . . . 36 table 45. effect of bits mi and si on pin int and bit msf. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 table 46. first increment of time circuits after stop release . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 table 47. interface selection input pin ifs. . . . . . . . . . . . 44 table 48. serial interface . . . . . . . . . . . . . . . . . . . . . . . . . 45 table 49. command byte definition . . . . . . . . . . . . . . . . . 46 table 50. i 2 c slave address byte . . . . . . . . . . . . . . . . . . . 49 table 51. limiting values . . . . . . . . . . . . . . . . . . . . . . . . . 51 table 52. static characteristics . . . . . . . . . . . . . . . . . . . . 52 table 53. frequency characteristics . . . . . . . . . . . . . . . . 55 table 54. spi-bus characteristics . . . . . . . . . . . . . . . . . . 56 table 55. i 2 c-bus characteristics . . . . . . . . . . . . . . . . . . . 58 table 56. abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . 61 table 57. revision history . . . . . . . . . . . . . . . . . . . . . . . . 63
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 66 of 68 nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 23. figures fig 1. block diagram of PCF2129A . . . . . . . . . . . . . . . . .3 fig 2. pin configuration for PCF2129A (so20) . . . . . . . .4 fig 3. handling address registers . . . . . . . . . . . . . . . . . .6 fig 4. battery switch-over behavior in standard mode with bit bie logic 1 (enabled) . . . . . . . . . . .15 fig 5. battery switch-over be havior in direct switching mode with bit bie logic 1 (enabled) . . . . . . . . . . .16 fig 6. battery switch-over circuit, simplified block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17 fig 7. typical driving capability of v bbs : (v bbs - v dd ) with respect to the ou tput load current i bbs . . . . .17 fig 8. battery low detection behavior with bit blie logic 1 (enabled) . . . . . . . . . . . . . . . . . . . . . . . . .18 fig 9. power failure event due to battery discharge: reset occurs . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19 fig 10. dependency between por and oscillator . . . . . .20 fig 11. power-on reset (por) system. . . . . . . . . . . . . .20 fig 12. power-on reset override (poro) sequence, valid for both i 2 c-bus and spi-bus . . . . . . . . . . .21 fig 13. data flow of the time functi on. . . . . . . . . . . . . . . .25 fig 14. access time for read/write operations . . . . . . . . .25 fig 15. alarm function block diagram. . . . . . . . . . . . . . . .26 fig 16. alarm flag timing diagram . . . . . . . . . . . . . . . . . .28 fig 17. wd_cd set logic 1: watchdog activates an interrupt when timed out . . . . . . . . . . . . . . . . . . .31 fig 18. timestamp detection with two push-buttons on one the ts pin (e.g. for tamper detection) . . .33 fig 19. interrupt block diagram . . . . . . . . . . . . . . . . . . . .37 fig 20. int example for si and mi when ti_tp is logic 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38 fig 21. int example for si and mi when ti_tp is logic 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39 fig 22. example of shortening the int pulse by clearing the msf flag . . . . . . . . . . . . . . . . . . . . . .39 fig 23. af timing diagram . . . . . . . . . . . . . . . . . . . . . . . .40 fig 24. stop bit functional diagram . . . . . . . . . . . . . . . .43 fig 25. stop bit release timing . . . . . . . . . . . . . . . . . . . .43 fig 26. interface selection . . . . . . . . . . . . . . . . . . . . . . . .44 fig 27. sdi, sdo configurations . . . . . . . . . . . . . . . . . . .45 fig 28. data transfer overview . . . . . . . . . . . . . . . . . . . . .45 fig 29. spi-bus write example . . . . . . . . . . . . . . . . . . . . .46 fig 30. spi-bus read example . . . . . . . . . . . . . . . . . . . . .46 fig 31. bit transfer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47 fig 32. definition of start and stop conditions. . . . . .47 fig 33. system configuration . . . . . . . . . . . . . . . . . . . . . .48 fig 34. acknowledgement on the i 2 c-bus . . . . . . . . . . . .48 fig 35. bus protocol, writing to registers . . . . . . . . . . . . .49 fig 36. bus protocol, reading from registers . . . . . . . . . .49 fig 37. device diode protection diagram of PCF2129A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50 fig 38. i dd as a function of temperature . . . . . . . . . . . . .53 fig 39. i dd as a function of v dd . . . . . . . . . . . . . . . . . . . .54 fig 40. characteristic of frequency with respect to temperature . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55 fig 41. spi-bus timing . . . . . . . . . . . . . . . . . . . . . . . . . . .57 fig 42. i 2 c-bus timing diagram; rise and fall times refer to 30 % and 70 % . . . . . . . . . . . . . . . . . . . . 59 fig 43. package outline sot163-1 (so20) . . . . . . . . . . 60
PCF2129A_1 ? nxp b.v. 2010. all rights reserved. product data sheet rev. 01 ? 13 january 2010 67 of 68 continued >> nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal 24. contents 1 general description . . . . . . . . . . . . . . . . . . . . . . 1 2 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 3 applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 4 ordering information . . . . . . . . . . . . . . . . . . . . . 2 5 marking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 6 block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 3 7 pinning information . . . . . . . . . . . . . . . . . . . . . . 4 7.1 pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 7.2 pin description . . . . . . . . . . . . . . . . . . . . . . . . . 4 8 functional description . . . . . . . . . . . . . . . . . . . 5 8.1 register overview . . . . . . . . . . . . . . . . . . . . . . . 5 8.2 control registers . . . . . . . . . . . . . . . . . . . . . . . . 8 8.2.1 register control_1 . . . . . . . . . . . . . . . . . . . . . . 8 8.2.2 register control_2 . . . . . . . . . . . . . . . . . . . . . . 9 8.2.3 register control_3 . . . . . . . . . . . . . . . . . . . . . 10 8.3 register clkout_ctl . . . . . . . . . . . . . . . . . . . 11 8.3.1 temperature compensated crystal oscillator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 8.3.1.1 temperature measurement . . . . . . . . . . . . . . 11 8.3.2 clock output . . . . . . . . . . . . . . . . . . . . . . . . . . 11 8.4 register aging_offset . . . . . . . . . . . . . . . . . . . 13 8.4.1 crystal aging correction . . . . . . . . . . . . . . . . . 13 8.5 power management functions . . . . . . . . . . . . 14 8.5.1 battery switch-over function . . . . . . . . . . . . . . 14 8.5.1.1 standard mode . . . . . . . . . . . . . . . . . . . . . . . . 15 8.5.1.2 direct switching mode . . . . . . . . . . . . . . . . . . 15 8.5.1.3 battery switch-over disabled: only one power supply (v dd ) . . . . . . . . . . . . . . . . . 16 8.5.1.4 battery switch-over architecture . . . . . . . . . . . 16 8.5.2 battery backup supply . . . . . . . . . . . . . . . . . . 17 8.5.3 battery low detection function. . . . . . . . . . . . . 18 8.6 oscillator stop detection function . . . . . . . . . . 19 8.7 reset function . . . . . . . . . . . . . . . . . . . . . . . . 20 8.7.1 power-on reset (por) . . . . . . . . . . . . . . . . . 20 8.7.2 power-on reset override (poro) . . . . . . . . 20 8.8 time and date function . . . . . . . . . . . . . . . . . . 22 8.8.1 register seconds . . . . . . . . . . . . . . . . . . . . . . 22 8.8.2 register minutes. . . . . . . . . . . . . . . . . . . . . . . 22 8.8.3 register hours . . . . . . . . . . . . . . . . . . . . . . . . 23 8.8.4 register days . . . . . . . . . . . . . . . . . . . . . . . . . 23 8.8.5 register weekdays. . . . . . . . . . . . . . . . . . . . . 23 8.8.6 register months . . . . . . . . . . . . . . . . . . . . . . . 24 8.8.7 register years . . . . . . . . . . . . . . . . . . . . . . . . 24 8.8.8 setting and reading the time. . . . . . . . . . . . . . 25 8.9 alarm function. . . . . . . . . . . . . . . . . . . . . . . . . 26 8.9.1 register second_alarm . . . . . . . . . . . . . . . . . 27 8.9.2 register minute_alarm . . . . . . . . . . . . . . . . . . 27 8.9.3 register hour_alarm . . . . . . . . . . . . . . . . . . . 27 8.9.4 register day_alarm . . . . . . . . . . . . . . . . . . . . 28 8.9.5 register weekday_alarm. . . . . . . . . . . . . . . . 28 8.9.6 alarm flag. . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 8.10 timer functions. . . . . . . . . . . . . . . . . . . . . . . . 29 8.10.1 register watchdg_tim_ctl . . . . . . . . . . . . . . . 29 8.10.2 register watchdg_tim_val . . . . . . . . . . . . . . . 29 8.10.3 watchdog timer function . . . . . . . . . . . . . . . . 30 8.10.4 pre-defined timers: second and minute interrupt . . . . . . . . . . . . . . . . . . . . . . . 31 8.10.5 clearing flags . . . . . . . . . . . . . . . . . . . . . . . . . 31 8.11 timestamp function . . . . . . . . . . . . . . . . . . . . 33 8.11.1 timestamp flag. . . . . . . . . . . . . . . . . . . . . . . . 33 8.11.2 timestamp mode . . . . . . . . . . . . . . . . . . . . . . 34 8.11.3 timestamp registers. . . . . . . . . . . . . . . . . . . . 34 8.11.3.1 register timestp_ctl . . . . . . . . . . . . . . . . . . . 34 8.11.3.2 register sec_timestp. . . . . . . . . . . . . . . . . . . 34 8.11.3.3 register min_timestp . . . . . . . . . . . . . . . . . . . 34 8.11.3.4 register hour_timestp . . . . . . . . . . . . . . . . . . 35 8.11.3.5 register day_timestp. . . . . . . . . . . . . . . . . . . 35 8.11.3.6 register mon_timestp . . . . . . . . . . . . . . . . . . 35 8.11.3.7 register year_timestp . . . . . . . . . . . . . . . . . . 35 8.11.4 dependency between battery switch-over and timestamp . . . . . . . . . . . . . . 36 8.12 interrupt output, int . . . . . . . . . . . . . . . . . . . . 37 8.12.1 minute and second interrupts. . . . . . . . . . . . . 38 8.12.2 int pulse shortening . . . . . . . . . . . . . . . . . . . 39 8.12.3 watchdog timer interrupts . . . . . . . . . . . . . . . 39 8.12.4 alarm interrupts . . . . . . . . . . . . . . . . . . . . . . . 40 8.12.5 timestamp interrupts . . . . . . . . . . . . . . . . . . . 40 8.12.6 battery switch-over interrupts . . . . . . . . . . . . 40 8.12.7 battery low detection interrupts . . . . . . . . . . . 40 8.13 external clock test mode . . . . . . . . . . . . . . . . 41 8.14 stop bit function . . . . . . . . . . . . . . . . . . . . . . 42 9 interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 9.1 spi-bus interface . . . . . . . . . . . . . . . . . . . . . . 45 9.1.1 data transmission . . . . . . . . . . . . . . . . . . . . . 45 9.2 i 2 c-bus interface . . . . . . . . . . . . . . . . . . . . . . 47 9.2.1 bit transfer . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 9.2.2 start and stop conditions. . . . . . . . . . . . . 47 9.2.3 system configuration . . . . . . . . . . . . . . . . . . . 47 9.2.4 acknowledge . . . . . . . . . . . . . . . . . . . . . . . . . 48 9.2.5 i 2 c-bus protocol . . . . . . . . . . . . . . . . . . . . . . . 48 10 internal circuitry . . . . . . . . . . . . . . . . . . . . . . . 50 11 limiting values . . . . . . . . . . . . . . . . . . . . . . . . 51 12 static characteristics . . . . . . . . . . . . . . . . . . . 52
nxp semiconductors PCF2129A integrated rtc, tcxo and quartz crystal ? nxp b.v. 2010. all rights reserved. for more information, please visit: http://www.nxp.com for sales office addresses, please se nd an email to: salesaddresses@nxp.com date of release: 13 january 2010 document identifier: PCF2129A_1 please be aware that important notices concerning this document and the product(s) described herein, have been included in section ?legal information?. 12.1 current consumption i dd characteristics, typical . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 12.2 frequency characteristics. . . . . . . . . . . . . . . . 55 13 dynamic characteristics . . . . . . . . . . . . . . . . . 56 13.1 spi-bus timing characteristics . . . . . . . . . . . . 56 13.2 i 2 c-bus timing characteristics . . . . . . . . . . . . . 58 14 application information. . . . . . . . . . . . . . . . . . 59 15 package outline . . . . . . . . . . . . . . . . . . . . . . . . 60 16 soldering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 17 abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . . 61 18 references . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 19 revision history . . . . . . . . . . . . . . . . . . . . . . . . 63 20 legal information. . . . . . . . . . . . . . . . . . . . . . . 64 20.1 data sheet status . . . . . . . . . . . . . . . . . . . . . . 64 20.2 definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 20.3 disclaimers . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 20.4 trademarks. . . . . . . . . . . . . . . . . . . . . . . . . . . 64 21 contact information. . . . . . . . . . . . . . . . . . . . . 64 22 tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 23 figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 24 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67


▲Up To Search▲   

 
Price & Availability of PCF2129A

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X